Repository navigation
fix(ui): kanban, calendar, timeline and map draw the no-access state for a refused read - #36016
Merged
objectstack-fleet[bot] merged 2 commits intoNov 21, 2026
Merged
Conversation
…for a refused read Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对ACCEPT · head
No required item at L1. Flip ready and land. |
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ Landing · area ux-2 · 2026-11-21T07:35Z
State: draft → ready + auto-merge (merge queue). |
objectstack-fleet
Bot
deleted the
claude/issue-36010-views-no-access-state
branch
November 21, 2026 07:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #36010
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The load-error branch of
ObjectKanban,ObjectCalendar,ObjectTimelineandObjectMapnow classifies a failed data load with the sharedclassifyLoadError(@object-ui/react). Aforbiddenverdict (a 403, or aPERMISSION_DENIED/FORBIDDENcode) draws the sharedDataEmptyState(role="status", Lock icon) with the existinglist.loadErrorForbiddenTitle/list.loadErrorForbiddenMessagekeys, and none of the server's text. Every other failure keeps each view's current error screen. This copies the Gantt pattern of PR #36006 view by view.@object-ui/componentswould be a new public export outside the claim's file surface.KANBAN_DEFAULT_TRANSLATIONS,TIMELINE_DEFAULT_TRANSLATIONS), with the same text as theenpack. Calendar and map have no such table, so theirt()calls carrydefaultValuewith the same text. No new i18n key.lucide-reactand useLock. Timeline and map declare no icon library, so they use the sharedLazyIcon name="lock"from@object-ui/components(same asrecord-alert.tsx), and no dependency is added.mapStyleError) is not a data load and is unchanged.ObjectKanban.tsxchanges are the import lines, two fallback rows and the load-error branch only (os-sales draft PR feat(list,detail): a change that makes other fields required asks for them in place #35994 also edits that file).Tests
New pins sit in each view's existing load-error harness as a top-level
describe:ObjectKanban.errorClears-10663.test.tsx,ObjectCalendar.errorClears-10663.test.tsx,ObjectTimeline.errorClears-10663.test.tsx, plusObjectMap.test.tsx(map has no load-error harness). In each one, a 403 withhttpStatusandcodedraws*-no-accesswithrole="status", the en sentence, and noError,PERMISSION_DENIEDorHTTP 403text. CONTROL: a 500 keeps the existing error screen.Acceptance notes
useTimelineTranslationcomments say the table is the "byte-identical twin ofen.ts". The two new rows matchen.tslist.loadErrorForbidden*text exactly.Verification
Two-minute check:
cd ui && pnpm exec vitest run packages/plugin-kanban/src/ObjectKanban.errorClears-10663.test.tsx -t 'refused read'. You should see 2 passed.Green on head 37a0692: 4 files, 24 tests
Red on base (sources reverted to ec24363, tests kept): every 403 pin red, every CONTROL green
Ablation (kanban, one view): forbidden branch disabled, the 403 pin goes red
The test imports the component from
src(relative./index/./ObjectMap), so no dist build is needed for the mutation to take effect.Type check: the four plugins
Derived gate families (local subset)
Files to read first:
ui/packages/plugin-map/src/ObjectMap.tsx(the new branch sits before the data error screen and must not catchmapStyleError),ui/packages/plugin-timeline/src/ObjectTimeline.tsx(LazyIconinstead oflucide-react),ui/packages/plugin-kanban/src/ObjectKanban.tsx(it overlaps PR #35994).Generated by Claude Code